<?php


namespace App\Http\Models\Dances;

use App\Http\Models\RequestValidator;

class DancesFrontendListFrom extends RequestValidator
{
    public function authorize()
    {
        return true;
    }

//    public function failedValidation($validator)
//    {
//        $error = $validator->errors();
//        echo "<pre>";
//        print_r($error);
//        exit;
//    }

    public function rules()
    {
        return [
            'type'  => 'required',
            'times' => 'required'
        ];
    }

    public function messages()
    {
        return [
            'type.required'  => "类型不能为空type",
            'times.required' => "时间不能为空times"
        ];

    }
}
